<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 200px;
            height: 200px;
            margin: 50px auto;
            background-color: pink;
        }

        /* 鼠标经过z移动 */
        .box:hover{
            /* 看不到3d效果 */
            /* transform: translateZ(20px); */
            /* transform: translateX(200px); */
            /* transform: translateY(200px); */

            transform: translate3d(20px,20px,20px);
        }
    </style>
</head>
<body>
    <div class="box"></div>
</body>
</html>